package com.hhf.domo_05;

/**
 * @Author: 黄恒锋
 * @DateTime: 2024/5/12 15:41
 * @Description: TODO
 */
public class App {

    public static void main(String[] args) {
        Mythread t1 = new Mythread();
        Mythread t2 = new Mythread();
        Mythread t3 = new Mythread();
        Mythread t4 = new Mythread();
        Mythread t5 = new Mythread();
        Mythread t6 = new Mythread();
        Mythread t7 = new Mythread();
        Mythread t8 = new Mythread();
        Mythread t9 = new Mythread();
        Mythread t10 = new Mythread();
        // 设置名字
        t1.setName("张三");
        t2.setName("李四");
        t3.setName("王五");
        t4.setName("赵六");
        t5.setName("王二");
        t6.setName("王二0");
        t7.setName("王二1");
        t8.setName("王二2");
        t9.setName("王二3");
        t10.setName("王二4");
        // 启动线程
        t1.start();
        t2.start();
        t3.start();
        t4.start();
        t5.start();
        t6.start();
        t7.start();
        t8.start();
        t9.start();
        t10.start();


    }
}

